<?php

require_once("../main/config.php");

class ObjectSet 
{
	private $index;
	private $objects;
		
	public function Lancamento ( $id = null) {
		if( $id != null ) {
			$this->loadByID($id);
		}
	
	}
	
	public function loadByID( $codigo ) {

	}
	
	
	public function isEmpty() {
		$status = true;
		if(count($this->objetcs)>0)
			$status = false;
		return $status;
	}
	
	public function getObject( $i ) {
		return $this->objects($i);
	}
	
	public function nextObject() {
		if($this->index == null) {
			$this->index = 0;
		}
		else {
			$this->index++;
		}
		return $this->objects[$this->index];
	}
	
	public function count() {
		return count($this->objects);
	}
	

}
?>